Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let mapleader="," " leader is comma
- let g:netrw_banner = 0
- let g:netrw_liststyle = 3
- let g:netrw_browse_split = 4
- let g:netrw_altv = 1
- let g:netrw_winsize = 25
- let g:netrw_list_hide='.*\.swp$'
- let g:netrw_chgwin=1
- set number " show line numbers
- set tabstop=4 " spaces per tab
- set softtabstop=4 " space per tab in editing
- set expandtab " tabs are spaces
- set smartindent
- set shiftwidth=4
- set showcmd
- set incsearch " search as characters are entered
- set hlsearch " highlight matches
- set showmatch " highlight match brackets
- set cursorline " highline current line
- set mouse=c " enable mouse support in terminal
- set ruler " show file status
- syntax on " enable syntax processing
- filetype plugin indent on " load filetype specific indent files
- highlight ExtraWhitespace ctermbg=red guibg=red
- match ExtraWhitespace /\s\+$/
- " turn off search highlight
- nnoremap <leader><space> :nohlsearch<CR>
- " turn off show numbers
- nnoremap <f2> :set nonumber!<CR>
- " Close a buffer/tab
- nnoremap <f3> :bdelete<CR>
- " Remove trailling whitespace
- nnoremap <f5> :%s/\s\+$//e<CR>
- " Show file explorer
- nnoremap <silent> <S-CR> :rightbelow 20vs<CR>:e .<CR>
- nnoremap <silent> <C-M> :rightbelow 20vs<CR>:e .<CR>
- " Tab navigation options
- nnoremap th :tabfirst<CR>
- nnoremap tk :tabnext<CR>
- nnoremap tj :tabprev<CR>
- nnoremap tl :tablast<CR>
- nnoremap tt :tabedit<Space>
- nnoremap tn :tabnext<Space>
- nnoremap tm :tabm<Space>
- nnoremap td :tabclose<CR>
Add Comment
Please, Sign In to add comment