This link has been bookmarked by 163 people and liked by 4 people. It was first bookmarked on 11 Dec 2011, by Nick Doherty.
-
12 Apr 12
-
18 Mar 12
-
04 Mar 12
-
02 Mar 12
-
16 Feb 12
keenhenry1109A better way to look into vim
vim programming tutorial editor configuration linux reference
-
07 Feb 12
Karsten Froehlich"I’ve had an off/on relationship with Vim for the past many years.
Before, I never felt like we understood each other properly. I felt that the kind of programming I’m doing is not easily done without plugins and some essential settings in .vimrc, but fiddling with all the knobs and installing all the plugins that I thought I needed was a process that in the end stretched out from few hours to weeks, months even; and it the end it just caused frustration instead of making me a happier coder.
Recently, I decided to give Vim another shot. This time around it was different – something in my brain switched and now for the first time in my life I’m proud of my knowledge of Vim. My philosophy of it has changed to “less is more”, my approach was more disciplined and my motivation stronger. And so you don’t spend as much time learning as I did, I am going to lay down some fundamentals." -
04 Feb 12
-
25 Jan 12
-
19 Jan 12
-
12 Jan 12
-
05 Jan 12
-
03 Jan 12
-
01 Jan 12
-
31 Dec 11
-
30 Dec 11
-
29 Dec 11
-
26 Dec 11
-
you shouldn’t start with a huge
.vimrcfile that you copied from someone else nor should you install every single plugin that seems useful at that moment. -
Everything mentioned in this article is valid in vim running in a terminal as well as graphical (GUI) vim such as gvim or MacVim. A graphical vim setting offers extra features, but I’m not covering any of those here.
-
Don’t use Janus.
-
You should be in charge of your
.vimrcand always know what’s going on, but with Janus you’re not. -
Never copy something from other people unless you know exactly what that particular setting is doing and you recognize that you’ve needed it before.
-
Don’t use too many plugins
-
Use Pathogen for managing them.
-
A lot of people publish their dotfiles on GitHub.
-
Make it pretty
-
You should use a good programming font for your terminal emulator
-
You should consider using a graphical Vim to reach the highest quality of typeface and color
-
- If you repeatedly (more than 2-3 times in a row) hit cursor keys to get somewhere, there is a better way.
- If you press backspace more than a couple of times to delete text, there is a better way.
- If you find yourself performing the same changes on several lines, there is a better way.
In general:
-
jump-motions
-
Mastering jumps is insanely powerful.
-
The `. motion brings the cursor back on the exact place where the last change was made.
-
if you did multiple jumps, you can backtrack with <C-o>
-
Vim doesn’t use your OS clipboard
-
Vim uses its registers as its internal clipboard. You can even save yanked text into a named register
-
Commands for selecting registers start with
": -
Don’t use the NERD tree plugin. It is clumsy, will hurt your split windows workflow because of edge-case bugs and plugin incompatibilities, and you never needed a file browser pane in the first place, anyway. The only thing it can be useful for is familiarizing yourself with the directory/file structure of a new project, and you can easily do that with the
treecommand-line tool -
-
See all of the current mappings in effect with :map
-
-
25 Dec 11
-
23 Dec 11
-
19 Dec 11
-
18 Dec 11
-
17 Dec 11
-
16 Dec 11
-
Willem JagerRecently, I decided to give Vim another shot. This time around it was different – something in my brain switched and now for the first time in my life I’m proud of my knowledge of Vim. My philosophy of it has changed to “less is more”, my approach was more disciplined and my motivation stronger. And so you don’t spend as much time learning as I did, I am going to lay down some fundamentals.
-
Jorge Padron" load file type plugins + indentation
"" Whitespace
set nowrap " don't wrap lines
set tabstop=2 shiftwidth=2 " a tab is two spaces (or set this to 4)
set expandtab " use spaces, not tabs (optional)
set backspace=indent,eol,start " backspace th -
15 Dec 11
-
14 Dec 11
-
13 Dec 11
-
12 Dec 11
-
wangyizhuoVim: revisited http://t.co/zLHOhvqY (http://t.co/qmpGqHN4) #trending #guru
-
Bjoern Stierand"Recently, I decided to give Vim another shot. This time around it was different – someting in my brain switched and now for the first time in my life I’m proud of my knowledge of Vim. "
-
Sushi CodeurI’ve had an off/on relationship with Vim for the past many years.
Before, I never felt like we understood each other properly. Vim is almost useless without plugins and some essential settings in .vimrc, but fiddling with all the knobs and installing all the plugins that I thought I needed was a process that in the end streched out from few hours to weeks, months even; and it the end it just caused frustration instead of making me a happier coder.
Recently, I decided to give Vim another shot. This time around it was different – someting in my brain switched and now for the first time in my life I’m proud of my knowledge of Vim. My philosophy of it has changed to “less is more”, my approach was more disciplined and my motivation stronger. And so you don’t spend as much time learning as I did, I am going to lay down some fundamentals. -
Yuri Baranov" And so you don’t spend as much time learning as I did, I am going to lay down some fundamentals."
-
-
Vim: revisited
By Mislav on 12 Dec 2011 in vim
I’ve had an off/on relationship with Vim for the past many years.
Before, I never felt like we understood each other properly. Vim is almost useless without plugins and some essential settings in
.vimrc, but fiddling with all the knobs and installing all the plugins that I thought I needed was a process that in the end streched out from few hours to weeks, months even; and it the end it just caused frustration instead of making me a happier coder.Recently, I decided to give Vim another shot. This time around it was different – someting in my brain switched and now for the first time in my life I’m proud of my knowledge of Vim. My philosophy of it has changed to “less is more”, my approach was more disciplined and my motivation stronger. And so you don’t spend as much time learning as I did, I am going to lay down some fundamentals.
-
-
11 Dec 11
Page Comments
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.