Advertisement
unnat

Untitled

Sep 26th, 2021
2,214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.89 KB | None | 0 0
  1. call plug#begin()
  2. Plug 'rakr/vim-one'
  3. Plug 'sheerun/vim-polyglot'
  4. Plug 'scrooloose/nerdcommenter'
  5. call plug#end()
  6.  
  7. " Keybindings
  8. inoremap <C-j> <ESC>
  9.  
  10. nmap <C-f> :set nohlsearch<CR>
  11. vmap <C-f> :set nohlsearch<CR>
  12. imap <C-f> :set nohlsearch<CR>
  13.  
  14. nmap <C-q> :q<CR>
  15. nmap <C-s> :w<CR>
  16.  
  17. nmap <C-m> :set nonumber norelativenumber<CR>
  18. vmap <C-m> :set nonumber norelativenumber<CR>
  19. imap <C-m> :set nonumber norelativenumber<CR>
  20.  
  21. " Comment lines
  22. nmap ++ <plug>NERDCommenterToggle
  23. vmap ++ <plug>NERDCommenterToggle
  24.  
  25. " Line numbers
  26. set number relativenumber
  27.  
  28. " Use mouse to navigate
  29. "set mouse=a
  30.  
  31. " Disable line wrapping
  32. set nowrap
  33.  
  34. " Theme
  35.  
  36. if (has("nvim"))
  37.   let $NVIM_TUI_ENABLE_TRUE_COLOR=1
  38. endif
  39. if (has("termguicolors"))
  40.   set termguicolors
  41. endif
  42.  
  43. " Use Terminal background color
  44. autocmd VimEnter * hi Normal guibg=NONE ctermbg=NONE
  45.  
  46. set background=dark
  47. colorscheme one
  48.  
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement