Files
vimconfig/vimrc
T
2015-03-26 16:48:05 +01:00

33 lines
838 B
VimL

filetype plugin indent on
execute pathogen#infect()
set background=dark
" colorscheme solarized
set ruler
syntax on
nmap <F8> :TagbarToggle<CR>
"AIRLINE/BUFFER MANAGEMENT
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#fnamemod = ':t'
" This allows buffers to be hidden if you've modified a buffer.
" This is almost a must if you wish to use buffers in this way.
set hidden
" To open a new empty buffer
" This replaces :tabnew which I used to bind to this mapping
nmap <leader>t :enew<CR>
" Move to the next buffer
nmap <leader>l :bnext<CR>
" Move to the previous buffer
nmap <leader>h :bprevious<CR>
" Close the current buffer and move to the previous one
" This replicates the idea of closing a tab
nmap <leader>bq :bp <BAR> bd #<CR>
" Show all open buffers and their status
nmap <leader>bl :ls<CR>