phantomjs/config/home/vimrc
Buddy Sandidge a82ce15c24 Update Dockerfile to have user with some configs
• Use demo user inside the container
 • Add .bashrc and .vimrc/.vim config files
2015-05-07 13:39:11 -07:00

63 lines
1.2 KiB
VimL

execute pathogen#infect()
set history=10000
filetype plugin on
filetype indent on
" Set to auto read when a file is changed from the outside
set autoread
" With a map leader it's possible to do extra key combinations
" like <leader>w saves the current file
let mapleader = ","
let g:mapleader = ","
set ruler
set relativenumber
" Ignore case when searching
set ignorecase
" When searching try to be smart about cases
set smartcase
" Highlight search results
set hlsearch
" Makes search act like search in modern browsers
set incsearch
" Don't redraw while executing macros (good performance config)
set lazyredraw
" For regular expressions turn magic on
set magic
syntax enable
set list
set listchars=tab:𝅔\ ,trail:…
set encoding=utf8
map <leader>nt :NERDTreeToggle<CR>
let NERDTreeDirArrows=1
" Close all open buffers on entering a window if the only
" buffer that's left is the NERDTree buffer
function! s:CloseIfOnlyNerdTreeLeft()
if exists("t:NERDTreeBufName")
if bufwinnr(t:NERDTreeBufName) != -1
if winnr("$") == 1
q
endif
endif
endif
endfunction
set expandtab
set shiftwidth=2
set softtabstop=2
set tabstop=2