/
.vimrc
34 lines (31 loc) · 1.49 KB
/
.vimrc
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
set nocompatible " get rid of Vi compatibility mode. SET FIRST!
filetype plugin indent on " filetype detection[ON] plugin[ON] indent[ON]
set t_Co=256 " enable 256-color mode.
syntax enable " enable syntax highlighting (previously syntax on).
colorscheme monokai " set colorscheme
set number " show line numbers
set laststatus=2 " last window always has a statusline
filetype indent on " activates indenting for files
set nohlsearch " Don't continue to highlight searched phrases.
set incsearch " But do highlight as you type your search.
set ic " ignore case sensitive
set ignorecase " Make searches case-insensitive.
set ruler " Always show info along bottom.
set autoindent " auto-indent
set smartindent " smart-indent
set expandtab " use spaces instead of tabs
set tabstop=2 " tab spacing
set softtabstop=2 " unify
set shiftwidth=2 " indent/outdent by 4 columns
set shiftround " always indent/outdent to the nearest tabstop
set smarttab " use tabs at the start of a line, spaces elsewhere
set nowrap " don't wrap text
highlight Visual ctermfg=yellow ctermbg=blue
call plug#begin()
Plug 'preservim/nerdtree'
call plug#end()
imap jj <esc>
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>