I installed amix vimrc in vim, so I’ll introduce the installation method, how to use it, and basic operations.
I was using nano and such in an environment where rmate couldn’t be used, but I was stressed because I couldn’t copy-paste or search (it was difficult), so I thought I’d reluctantly introduce vim.
I’ve touched vim once before, and I could touch vi to some extent, so it’s like a bit of a review.
I wanted to make it Atom-like
I’m an Atom user, so I thought it would be nice if I could make it Atom-like, and when I researched, I found something that looked really good.
I build stuff: How to to make Vim to look like Atom
I get an error saying Not an editor command: Plug, so I’ll install Plug, the package management tool.
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
…I couldn’t do it.
I get errors.
Hmm, I don’t know.
Let’s try using amix vimrc
A .vimrc with various vimrc plugins combined into a nice editor is distributed, so I’ll try using it.
amix/vimrc: The ultimate Vim configuration: vimrc
Install the Awesome version of amix vimrc.
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
What’s great about amix vimrc:
- Standard ctrl+c/ctrl+v copy-paste works
- HOME/END keys work. ctrl+END[HOME] also works, which is convenient
- Some languages like Python, Javascript, sh are colored by default
- It becomes editor-like
- Modes
- String search
- Undo/Redo ctrl+z/ctrl+y
- Replace
The replacement character for () is \1. e.g. :%s/(“text”)/h(\1)/ => h(“text”)
- Execute command
- Save / ctrl+s
- Force quit
:h Display help
Impressions
Atom still feels more convenient for now.
First of all, it’s not good that you have to go to command mode for most operations. With the vimrc I found this time, I was quite saved because I could use mouse cursor operations and shortcut keys for copy-paste…
When you’re used to shortcuts like ctrl+ / ctrl+shift+ /, having to do ctrl+[ before that is…
I think it’s good that you can do various things… but it’s better if simple operations can be done with one key…
Project management can apparently be done, but it looks troublesome… In the first place, it takes several days/weeks just to set up such things… which is tough.
Well, this time it was an urgent measure for VirtualBox where rmate can’t be used, so it’s fine as long as I can implement about the same functionality as notepad.
Things I want to implement
I listed things I think are lacking in the current vim environment.
<li>Can't input multiple lines </li>
{/* <li>Select same string: In Atom, if you press ctrl+d in string selection state, it selects the same string. I want this kind of function... but it probably doesn't exist. Even if it exists, it would probably take about 1 year to find it. This would be quite convenient...</li> */}
<li>Select same string: In Atom, if you press ctrl+d in string selection state, it selects the same string. I want this kind of function...</li>
<li>Project management File search + open: In Atom you can do it with ctrl+t. I think you can probably do it if you research... I want it to be possible.</li>
I'm so dependent on Atom that I wish they would just transfer Atom to vim as is... but the vimrc I mentioned earlier couldn't be used... so maybe it's best to wait for time to solve it.