Bueno, primero instalamos vim al completo:
apt-get install vim-common vim-runtime vim-scripts vim-perl
Ahora, si quereis soporte para correccion ortográfica en español descargais todo lo que empieze por es. del ftp y lo poneis en /usr/share/vim/vim72/spell
Simplemente añadiendo a nuestro ~/.vimrc las siguientes lineas tendremos correccion ortográfica:
runtime plugins/spellfile.vim setlocal spell spelllang=es
Si quereis cualquier otra cosa, contactad conmigo, por si sirve, aqui esta mi .vimrc:
set nocompatible
set backspace=indent,eol,start
set nobackup " do not keep a backup file
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
" CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo,
" so that you can undo CTRL-U after inserting a line break.
inoremap <C-U> <C-G>u<C-U>
if has('mouse')" In many terminal emulators the mouse works just fine, thus enable it.
set mouse=a
endif
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
" Only do this part when compiled with support for autocommands.
if has("autocmd")
filetype plugin indent on
augroup vimrcEx
au!
" For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
" Also don't do it when the mark is in the first line, that is the default
" position when opening a file.
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
augroup END
else
set autoindent " always set autoindenting on
endif " has("autocmd")
" Convenient command to see the difference between the current buffer and the
" file it was loaded from, thus the changes you made.
" Only define it when not defined already.
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
\ | wincmd p | diffthis
endif
" those are basics, show line number and let vim colors ready for dark backgrounds
set background=dark
set number
set isfname=@,48-57,/,.,-,_,+,,,#,$,%,~,=,:
set helplang=es " help lang in spanish
runtime plugins/spellfile.vim
setlocal spell spelllang=es
set comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
au BufRead /tmp/mutt* normal :g/^> -- $/,/^$/-1d^M/^$^M^L
3 Comments
Gracias por la información
. ¿Sabes como se puede hacer para añadir palabras que no reconozca el corrector en el diccionario directamente desde vim? y si me dices el atajo de teclado mejor que mejor jeje.
Saludos
El shortcut es “zg”, simplemente eso
“…español descargais todo lo que empieze por…”
¡Es “empieCe”, con C, C de Cazurro! ¡¡¡Animal!!! xDD
Para ser un artículo sobre corrección ortográfica, te has lucido… :-p
One Trackback/Pingback
[...] http://thexayon.wordpress.com/2008/11/08/vim-con-correccion-ortografica/ [...]