Advertisement
Leon_358522

vimrc

Sep 8th, 2024
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.57 KB | None | 0 0
  1. Vim settings file
  2. filetype on
  3. filetype plugin on
  4. filetype indent on
  5.  
  6. syntax on
  7.  
  8. set nu
  9. set relativenumber
  10.  
  11. set shell=pwsh
  12.  
  13. set cursorline
  14. set cursorcolumn
  15.  
  16. set showmatch
  17. set hlsearch
  18.  
  19. set history=1000
  20.  
  21. set wildmenu
  22.  
  23. set wildmode=list:longest
  24.  
  25. set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
  26.  
  27.  
  28.  
  29.  
  30. " PLUGINS ---------------------------------------------------------------- {{{
  31.  
  32. " Plugin code goes here.
  33.  
  34. call plug#begin('~/.vim/plugged')
  35.  
  36.  
  37.   Plug 'dense-analysis/ale'
  38.   Plug 'preservim/nerdtree'
  39.   Plug 'sickill/vim-pasta'
  40.  
  41.  
  42. call plug#end()
  43.  
  44. " }}}
  45.  
  46.  
  47. " MAPPINGS --------------------------------------------------------------- {{{
  48.  
  49. " Mappings code goes here.
  50.  
  51. " Navigate the split view easier by pressing CTRL+j, CTRL+k, CTRL+h, or CTRL+l.
  52.     nnoremap <c-j> <c-w>j
  53.     nnoremap <c-k> <c-w>k
  54.     nnoremap <c-h> <c-w>h
  55.     nnoremap <c-l> <c-w>l
  56.  
  57. " }}}
  58.  
  59.  
  60. " VIMSCRIPT -------------------------------------------------------------- {{{
  61.  
  62. " This will enable code folding.
  63. " Use the marker method of folding.
  64. augroup filetype_vim
  65.     autocmd!
  66.     autocmd FileType vim setlocal foldmethod=marker
  67.     autocmd WinLeave * set nocursorline nocursorcolumn
  68.     autocmd WinEnter * set cursorline cursorcolumn  
  69. augroup END
  70.  
  71.  
  72. if version >= 703
  73.     set undodir=~/.vim/backup
  74.     set undofile
  75.     set undoreload=10000
  76. endif
  77.  
  78.  
  79. " More Vimscripts code goes here.
  80.  
  81. "  $HOME/vimfiles/autoload/plug.vim -Force}}}
  82.  
  83.  
  84. " STATUS LINE ------------------------------------------------------------ {{{
  85.  
  86. " Status bar code goes here.
  87.  
  88. " }}}
  89.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement