Guest User

Vimrc for writing

a guest
Apr 6th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. set linebreak "sirve para que las palabras no queden cortadas al final de la pantalla
  2.  
  3. set scrolloff=999 "sirve para emular el scroll de máquina de escribir
  4.  
  5. set nocompatible " be iMproved, required
  6. filetype off " required
  7.  
  8. "Que haya una línea de status y en ella una cuenta de palabras
  9. set laststatus=2
  10. "set statusline=
  11. set statusline+=\%l
  12. "set statusline+=\ %*
  13. set statusline+=\ %m
  14. set statusline+=\ %F
  15. "switching to right side
  16. set statusline+=%=
  17. set statusline+=\ [
  18. set statusline+=\%n
  19. set statusline+=\]\ %*
  20. set statusline+=%{wordcount().words}\ palabras
  21.  
  22. "Establecemos los colores
  23. hi StatusLine ctermbg=none ctermfg=244 cterm=none
  24.  
  25. " set the runtime path to include Vundle and initialize
  26. set rtp+=~/.vim/bundle/Vundle.vim
  27. call vundle#begin()
  28. " alternatively, pass a path where Vundle should install plugins
  29. "call vundle#begin('~/some/path/here')
  30.  
  31. " let Vundle manage Vundle, required
  32. Plugin 'VundleVim/Vundle.vim'
  33.  
  34. " The following are examples of different formats supported.
  35. " Keep Plugin commands between vundle#begin/end.
  36. " plugin on GitHub repo
  37. " Plugin 'tpope/vim-fugitive'
  38. " plugin from http://vim-scripts.org/vim/scripts.html
  39. " Plugin 'L9'
  40. " Git plugin not hosted on GitHub
  41. " Plugin 'git://git.wincent.com/command-t.git'
  42. " git repos on your local machine (i.e. when working on your own plugin)
  43. " Plugin 'file:///home/gmarik/path/to/plugin'
  44. " The sparkup vim script is in a subdirectory of this repo called vim.
  45. " Pass the path to set the runtimepath properly.
  46. " Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
  47. " Install L9 and avoid a Naming conflict if you've already installed a
  48. " different version somewhere else.
  49. " Plugin 'ascenator/L9', {'name': 'newL9'}
  50. Plugin 'godlygeek/tabular'
  51. Plugin 'plasticboy/vim-markdown'
  52. Plugin 'skywind3000/vim-keysound'
  53. Plugin 'junegunn/goyo.vim'
  54. Plugin 'reedes/vim-pencil'
  55. Plugin 'scrooloose/nerdtree'
  56. "Plugin 'junegunn/limelight.vim'
  57. " All of your Plugins must be added before the following line
  58. call vundle#end() " required
  59. filetype plugin indent on " required
  60. " To ignore plugin indent changes, instead use:
  61. "filetype plugin on
  62. "
  63. " Brief help
  64. " :PluginList - lists configured plugins
  65. " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
  66. " :PluginSearch foo - searches for foo; append `!` to refresh local cache
  67. " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
  68. "
  69. " see :h vundle for more details or wiki for FAQ
  70. " Put your non-Plugin stuff after this line
  71.  
  72. " Iniciar Plugin Pencil automáticamente para markdown y text
  73. set nocompatible
  74. filetype plugin on " may already be in your .vimrc
  75.  
  76. let g:pencil#wrapModeDefault = 'soft' " default is 'hard'
  77.  
  78. augroup pencil
  79. autocmd!
  80. autocmd FileType markdown,mkd call pencil#init()
  81. autocmd FileType text call pencil#init()
  82. augroup END
  83.  
  84. " Iniciar Keysound automáticamente
  85. let g:keysound_enable = 1
  86. " Poner tema máquina de escribir. Los que hay son: default, typewriter, mario,
  87. " sword, bubble
  88. let g:keysound_theme = 'typewriter'
  89.  
  90. " Poner corrección ortográfica al español
  91. " Pongo el nospell porque al parecer el setlocal lo activa y lo marca
  92. " automático, así que lo desconecto
  93. setlocal spell spelllang=es
  94. set nospell
  95.  
  96. let g:vim_markdown_toc_autofit = 1
  97.  
  98. highlight VertSplit cterm=NONE
  99.  
  100. set fillchars+=vert:\
  101.  
  102. "Es para intentar poner la línea vertical para que no se vea, diciendo que el
  103. "caracter de separación sea de color blanco (ctermfg o foreground de terminal), igual que el fondo
  104.  
  105. hi! VertSplit guifg=white guibg=white ctermfg=white
Advertisement
Add Comment
Please, Sign In to add comment