For a project of mine (involving LEJOS-OSEK, mostly), I’m forced (well, almost) to use Windows, which my dear VirtualBox virtualizes fairly well on my clean Linux host. I obviously setup vim for my coding needs, but its default behavior isn’t quite what we are used to on other platforms. For instance visual mode selection with arrows requires you to hold Shift, while it doesn’t elsewhere and backup files are created upon write.
So, let’s edit the .vimrc file, which actually is at VIM_INSTALL_PATH\_vimrc (for instance C:\Program Files\vim\_vimrc with the default install options).
Disabling backup files is as simple as adding
set nobackup
Getting visual mode arrows selection is a bit different, as explained in vim tip 864 comments, you can either add
set keymodel-=stopsel
around the end of the file
or drop the
behave mswin
line from the default vimrc.
Here are two other (non windows-specific) tips:
Bash like filename completion:
set wildmode=longest:full
set wildmenu
Pythonic smart indent:
autocmd BufRead *.py set ai et ts=4 sw=4 sts=4
autocmd FileType python set ai et ts=4 sw=4 sts=4
autocmd BufRead *.pyx set ai et ts=4 sw=4 sts=4
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
See also this pretty Tango color scheme for vim.
September 6th, 2008 at 8:25 pm
Thanks for the shift selection tip. That’s exactly what I needed.
July 17th, 2018 at 9:20 am
… [Trackback]
[…] Find More Informations here: guillaume.segu.in/blog/home/121/vim-tips/ […]
September 28th, 2018 at 5:42 pm
oakley m frame 3.0 australia
iXce
July 1st, 2019 at 8:42 pm
buy best proxies
I found a great…
July 22nd, 2019 at 11:52 am
twitter proxy
I found a great…
August 2nd, 2019 at 3:51 am
Francesco Galayda
I found a great…
August 2nd, 2019 at 3:34 pm
Mireille Decarvalho
I found a great…
August 2nd, 2019 at 11:47 pm
Floyd Woodberry
I found a great…
October 28th, 2019 at 4:08 pm
Veta Chess
I found a great…
October 31st, 2019 at 11:19 pm
Yung Gustison
I found a great…
November 1st, 2019 at 5:03 pm
Sergio Rily
I found a great…
November 2nd, 2019 at 3:39 pm
Bobby Miko
I found a great…
November 4th, 2019 at 5:51 pm
Larissa Adelstein
I found a great…
December 10th, 2019 at 2:33 am
Gsa Proxies
I found a great…
February 3rd, 2020 at 12:16 pm
tri noi
blog topic
April 13th, 2020 at 8:31 pm
우리카지노
iXce’s blog » Blog Archive » vim (on windows or not) configuration tips
April 21st, 2020 at 5:45 pm
Maura Bedillion
I found a great…
May 7th, 2020 at 7:49 pm
Cheap Usa Proxy
I found a great…
June 11th, 2020 at 8:43 pm
social profile
iXce’s blog » Blog Archive » vim (on windows or not) configuration tips
June 12th, 2020 at 4:00 pm
Lowell Mojarro
I found a great…
June 24th, 2020 at 10:50 pm
Kermit Zevallos
I found a great…
July 18th, 2020 at 12:01 am
interior
iXce’s blog » Blog Archive » vim (on windows or not) configuration tips
July 24th, 2020 at 7:29 pm
Latisha Guzik
I found a great…
November 12th, 2021 at 7:09 am
카지노
iXce’s blog » Blog Archive » vim (on windows or not) configuration tips
January 13th, 2022 at 2:55 am
1labourer
January 14th, 2022 at 5:38 pm
gay chat rouletter https://gaytgpost.com/
January 28th, 2022 at 5:52 pm
charles town races
January 28th, 2022 at 9:38 pm
classic slots free https://freeonlneslotmachine.com/
January 29th, 2022 at 1:29 am
cashman casino slots free https://candylandslotmachine.com/
January 29th, 2022 at 5:29 am
battle slots download https://pennyslotmachines.org/
February 3rd, 2022 at 6:46 pm
las vegas games free slots https://slotmachinesforum.net/
February 3rd, 2022 at 10:58 pm
888 free slots machine https://slot-machine-sale.com/
February 4th, 2022 at 12:19 am
free jackpot party slots https://beat-slot-machines.com/
February 4th, 2022 at 3:34 am
google free slots https://download-slot-machines.com/
February 4th, 2022 at 9:32 am
big fish free slots games https://411slotmachine.com/
February 4th, 2022 at 12:34 pm
dgn free slots https://www-slotmachines.com/
February 4th, 2022 at 4:32 pm
best way to win at slots https://slotmachinegameinfo.com/
February 10th, 2022 at 7:46 pm
online dissertation writer https://buydissertationhelp.com/
February 11th, 2022 at 8:26 pm
medical dissertation writing help https://help-with-dissertations.com/
February 12th, 2022 at 1:10 am
best phd dissertation writing services https://mydissertationwritinghelp.com/
February 12th, 2022 at 5:22 am
doctoral dissertation writing help me https://dissertations-writing.org/
February 12th, 2022 at 6:53 am
nursing dissertation help https://helpon-doctoral-dissertations.net/