Edit Page
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 29: | Line 29: | ||
Also if you map the full path to aspell in your map eg c:/vim/aspell/aspell.exe you wont need an environment variable |
Also if you map the full path to aspell in your map eg c:/vim/aspell/aspell.exe you wont need an environment variable |
||
− | map |
+ | map <Leader>s <Esc>:!c:/vim/aspell/aspell.exe -c --dont-backup %<CR>:e! %<CR><CR> |
or |
or |
||
− | map |
+ | map <Leader>s <Esc>:!c:\vim\aspell\aspell.exe -c --dont-backup %<CR>:e! %<CR><CR> |
---- |
---- |
||
People love to put spaces in their file names in MS Windows these days. I used the aspell lines provided with the full path as noted by zzapper, david at tvis dot co dot uk. At first his example did not work because I was using someone's file with a space in it for testing. I then changed |
People love to put spaces in their file names in MS Windows these days. I used the aspell lines provided with the full path as noted by zzapper, david at tvis dot co dot uk. At first his example did not work because I was using someone's file with a space in it for testing. I then changed |
||
− | map |
+ | map <Leader>s <Esc>:!c:\vim\aspell\aspell.exe -c --dont-backup %<CR>:e! %<CR><CR> |
to |
to |
||
− | map |
+ | map <Leader>s <Esc>:!c:\vim\aspell\aspell.exe -c --dont-backup "%"<CR>:e! "%"<CR><CR> |
Please note the quotes around the percent sign, "%". Both the tip and David's note are very effective. You'd want to do something similar on Linux too. Especially if you are serving up files with Samba. See http://www.samba.org |
Please note the quotes around the percent sign, "%". Both the tip and David's note are very effective. You'd want to do something similar on Linux too. Especially if you are serving up files with Samba. See http://www.samba.org |