Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " SPACE AND TABS
- syntax enable " enable syntax processing
- set tabstop=4 " number of visual spaces per TAB
- set softtabstop=4 " number of spaces in the tab when editing
- set expandtab " tabs are spaces
- " UI CONFIG
- set number " show line numbers
- set showcmd " show command in bottom bar
- set cursorline " highlight current line
- filetype indent on " load filetype-specific indent files
- set wildmenu " visual autocomplete for command menu
- set lazyredraw " redraw only when we need to
- set showmatch " highlight matching [{()}]
- " SEARCHING
- set incsearch " search as characters are entered
- set hlsearch " highlight matches
- " turn off search highlight
- nnoremap <leader><space> :nohlsearch<CR>
- " FOLDING
- set foldenable " enable folding
- set foldlevelstart=10 " open most folds by default
- set foldnestmax=10 " 10 nested fold max
- " space open/closes folds
- nnoremap <space> za
- set foldmethod=indent " fold based on indent level
- " MOVEMENT
- " move vertically by visual line
- nnoremap j gj
- nnoremap k gk
- " move to beginning/end of line
- nnoremap B ^
- nnoremap E $
- " $/^ doesn't do anything
- nnoremap $ <nop>
- nnoremap & <nop>
- " highlight last inserted text
- nnoremap gV `[v`]
- " disable 'smart' indent
- " setlocal indentkeys-=:
- " LEADER SHORTCUTS
- " CONTINUE: https://dougblack.io/words/a-good-vimrc.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement