Anyone who knows who sjl is could have easily found his vimrc through his website. According to the bitbucket history, the file has been hosted there since at least 2009.
Steve Losh's .vimrc
71–80 of 103 posts
Re: Steve Losh's .vimrc
#72I like PulseCursorLine, but I wonder why only on N and n? (e.g. not on *)
" Don't move on *
nnoremap * *Re: Steve Losh's .vimrc
#73Earlier quoted context omitted.
I run wget -qO - bit.ly/newbox | sh or curl -Ls bit.ly/newbox | sh and am up and running. No sweat. I keep this stuff in Dropbox too, just in case.
That's a huge amount of trust you've placed in bit.ly, and in insecure http. You might at least consider typing out https://bit.ly/newbox so that you only have to trust bit.ly. Better yet, memorize the URL that bit.ly links to. Also, why do you symlink your dotfiles into your cloned git repo, rather than just checking out the git repo as ~? Personally, I just move the .git directory from the clone to ~, and then "git…
Also due to laziness I don't want to add a bunch of stuff to .gitignore, or add * and then add exceptions. I like having the symlinks.
Re: Steve Losh's .vimrc
#74 nnoremap ev sjL:e $MYVIMRC
:vsplit $MYVIMRC and so on would work the same way, but more obviously, and without depending on the placement of split windows.Re: Steve Losh's .vimrc
#75I didn't know this was possible: " Resize splits when the window is resized au VimResized * exe "normal! \ =" That's really handy. Also, this part made me smile: " Heresy inoremap I inoremap A
inoremap
Technical note: I's behavior changes depending on 'cpo' so you can't just map it to ^.Re: Steve Losh's .vimrc
#76That's one thing that worries me about using vim full-time: if I become reliant on a .vimrc or a set of plugins to use vim effectively, but I'm on a computer that doesn't have my .vimrc on it, I'm doomed.
set nocp
set hidden
set ts=2
set sw=2
set autoindent
set incsearch
filetype on
filetype plugin on
map j
map k
map l
map h
For buffer management, combination of :ls, :b and :b# does the job well enough, compiling command-t plugin isn't necessary :). For listing of files there is :sexplore . For code browsing there is plain old ctags. There you go, almost 90% of environment created. Other things like surround or snipets support would be better. But I don't use them most of the time :).Re: Steve Losh's .vimrc
#77Does this affect performance in any way? 1k+ lines is quite a lot.
Re: Steve Losh's .vimrc
#78I didn't know this was possible: " Resize splits when the window is resized au VimResized * exe "normal! \ =" That's really handy. Also, this part made me smile: " Heresy inoremap I inoremap A
That's something disgusting about Vim - mapping to other keys instead of commands. In Emacs its much nicer IMO:
(global-set-key (kbd "C-a") 'beginning-of-line)Re: Steve Losh's .vimrc
#79I didn't know this was possible: " Resize splits when the window is resized au VimResized * exe "normal! \ =" That's really handy. Also, this part made me smile: " Heresy inoremap I inoremap A
(I love both editors) That's something disgusting about Vim - mapping to other keys instead of commands. In Emacs its much nicer IMO: (global-set-key (kbd "C-a") 'beginning-of-line)
Re: Steve Losh's .vimrc
#80I didn't know this was possible: " Resize splits when the window is resized au VimResized * exe "normal! \ =" That's really handy. Also, this part made me smile: " Heresy inoremap I inoremap A
The comment is cute, but doesn't it make more sense to just map to End itself since A is essentially a shortcut for a inoremap Technical note: I's behavior changes depending on 'cpo' so you can't just map it to ^.