Added the bufferline plugin and buffer-related leader commands
This commit is contained in:
parent
1b0208cdbc
commit
e2aee6a490
1 changed files with 25 additions and 1 deletions
26
vimrc
26
vimrc
|
@ -7,6 +7,8 @@ set nu
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
set hlsearch ignorecase
|
set hlsearch ignorecase
|
||||||
"Auto indent
|
"Auto indent
|
||||||
|
filetype on
|
||||||
|
filetype plugin on
|
||||||
filetype indent on
|
filetype indent on
|
||||||
set autoindent
|
set autoindent
|
||||||
set smartindent
|
set smartindent
|
||||||
|
@ -40,6 +42,9 @@ Plugin 'godlygeek/tabular'
|
||||||
Plugin 'plasticboy/vim-markdown'
|
Plugin 'plasticboy/vim-markdown'
|
||||||
Plugin 'kchmck/vim-coffee-script'
|
Plugin 'kchmck/vim-coffee-script'
|
||||||
Plugin 'pangloss/vim-javascript'
|
Plugin 'pangloss/vim-javascript'
|
||||||
|
Plugin 'jelera/vim-javascript-syntax'
|
||||||
|
Plugin 'octol/vim-cpp-enhanced-highlight'
|
||||||
|
Plugin 'bling/vim-bufferline'
|
||||||
Bundle 'kien/ctrlp.vim'
|
Bundle 'kien/ctrlp.vim'
|
||||||
Bundle 'mattn/webapi-vim'
|
Bundle 'mattn/webapi-vim'
|
||||||
Bundle 'mattn/gist-vim'
|
Bundle 'mattn/gist-vim'
|
||||||
|
@ -64,13 +69,19 @@ let g:gitgutter_highlight_lines = 0
|
||||||
let g:AutoClosePairs = "() {} \" ` ' [] <>"
|
let g:AutoClosePairs = "() {} \" ` ' [] <>"
|
||||||
|
|
||||||
""""""""Leader Commands""""""""
|
""""""""Leader Commands""""""""
|
||||||
nnoremap <leader>n :NERDTreeToggle <CR>
|
nnoremap <leader>n :NERDTreeToggle<CR>
|
||||||
nnoremap <leader>w :w <CR>
|
nnoremap <leader>w :w <CR>
|
||||||
nnoremap <leader>i :PluginInstall<CR>
|
nnoremap <leader>i :PluginInstall<CR>
|
||||||
nnoremap <leader>g :Gist<CR>
|
nnoremap <leader>g :Gist<CR>
|
||||||
nnoremap <leader>q :q<CR>
|
nnoremap <leader>q :q<CR>
|
||||||
nnoremap <leader>x :x<CR>
|
nnoremap <leader>x :x<CR>
|
||||||
nnoremap <leader>r :%s/
|
nnoremap <leader>r :%s/
|
||||||
|
nnoremap <leader>v :vsplit<CR>
|
||||||
|
nnoremap <leader>ba :badd new.txt<CR>
|
||||||
|
nnoremap <leader>bd :bd<CR>
|
||||||
|
nnoremap <leader>bn :bnext<CR>
|
||||||
|
nnoremap <leader>bp :bprevious<CR>
|
||||||
|
|
||||||
|
|
||||||
""""""Setup ctlp""""""
|
""""""Setup ctlp""""""
|
||||||
set runtimepath^=~/.vim/bundle/ctrlp.vim
|
set runtimepath^=~/.vim/bundle/ctrlp.vim
|
||||||
|
@ -86,3 +97,16 @@ nmap <c-l> <c-w>l
|
||||||
""""""Improve indent in visual mode""""""
|
""""""Improve indent in visual mode""""""
|
||||||
vnoremap < <gv
|
vnoremap < <gv
|
||||||
vnoremap > >gv
|
vnoremap > >gv
|
||||||
|
|
||||||
|
""""""Enable Extra Cpp Syntax Highlighting Features""""""
|
||||||
|
let g:cpp_class_scope_highlight = 1
|
||||||
|
let g:cpp_experimental_template_highlight = 1
|
||||||
|
|
||||||
|
""""""Enable Better HTML AutoIndent""""""
|
||||||
|
let g:html_indent_inctags = "html,body,head,tbody, div, img, a"
|
||||||
|
|
||||||
|
""""""Configure Bufferline""""""
|
||||||
|
let g:bufferline_echo = 0
|
||||||
|
let g:bufferline_show_bufnr = 0
|
||||||
|
let g:bufferline_echo = 0
|
||||||
|
autocmd VimEnter * let &statusline='%{bufferline#refresh_status()}'.bufferline#get_status_string()
|
||||||
|
|
Loading…
Reference in a new issue