-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
36 lines (34 loc) · 969 Bytes
/
vimrc
File metadata and controls
36 lines (34 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
execute pathogen#infect()
filetype on
syntax on
colorscheme Tomorrow-Night
let g:airline_theme='papercolor'
let mapleader=';'
set guifont=Menlo\ Regular:h18
set laststatus=2
set backspace=indent,eol,start
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
set number
set tw=80
set colorcolumn=80
imap jk <Esc>
nnoremap j gj
nnoremap k gk
set hidden
set history=300
set hlsearch
set mouse=a
" <Ctrl-l> redraws the screen and removes any search highlighting.
nnoremap <silent> <C-l> :nohl<CR><C-l>
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
:nmap <leader>e :NERDTreeToggle<CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif