Advertisement
Guest User

NVIM Config

a guest
Apr 28th, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. """"""" Neovim init file """""""""
  2.  
  3. """ Plugins
  4. set rtp+=~/.config/nvim/bundle/Vundle.vim
  5. call vundle#begin('~/.config/nvim/bundle')
  6.  
  7. Plugin 'VundleVim/Vundle.vim' " Plugin manager
  8.  
  9. if $TERM !=? "linux"
  10. Plugin 'itchyny/lightline.vim' " Status bar
  11. endif
  12.  
  13. Plugin 'ervandew/supertab' " Tab completion
  14. Plugin 'NLKNguyen/papercolor-theme' " Color scheme
  15. Plugin 'https://git.x4m3.rocks/x4m3/vim-epitech.git' " Epitech plugin
  16. Plugin 'airblade/vim-rooter' " cd to .git
  17. Plugin 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
  18. Plugin 'junegunn/fzf.vim' " Fuzzy search
  19. Plugin 'tomtom/tcomment_vim' " Comment plugin
  20. Plugin 'michaeljsmith/vim-indent-object' " Indent selector
  21.  
  22. call vundle#end()
  23.  
  24. """ Others
  25. filetype plugin indent on
  26.  
  27. """ Fonts and colors
  28. syntax enable " Enable syntax processing
  29. set background=dark " Background to dark
  30. colorscheme PaperColor " Set the color scheme
  31.  
  32. """ Split
  33. set splitbelow " Horizontal split below current.
  34. set splitright " Vertical split to right of current.
  35.  
  36. """ TABS
  37. set tabstop=4 " Number of visual spaces per TAB
  38. set softtabstop=4 " Number of spaces in tab when editing
  39. set shiftwidth=4 " Number of spaces to use for autoindent
  40. set expandtab
  41. set autoindent
  42.  
  43. """ UI Config
  44. set number " Show line number
  45. set showcmd " Show command in bottom bar
  46. set wildmenu " Visual autocomplete for command menu
  47. set showmatch " Highlight matching brace
  48. set mouse=a
  49. set title
  50. set cmdheight=1
  51. set linebreak
  52.  
  53. """ Searching
  54. set smartcase " Case-sensitive if capital letter
  55. set incsearch " Set incremental search (like modern browsers)
  56. set hlsearch " Highlight search result
  57.  
  58. """ FIXs
  59. autocmd BufReadPost *
  60. \ if line("'\"") > 0 && line("'\"") <= line("$") |
  61. \ exe "normal g`\"" |
  62. \ endif " Fixing last pos
  63. set shell=/usr/bin/bash " Fixing plugins error
  64. set nolist " Don't show new line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement