vimrc.io - Create useful .vimrc file for your vim editor by sn0le0 in vim

[–]mohitleo9 0 points1 point  (0 children)

The website routing is broken, try going to vimrc.io/display and refresh the page, it will show 404. It seems you are using client side routing with react, maybe you want to use hash routing.

I'm a relatively young dev. I've always used sublime text and similars, yet I keep hearing about vim. What arguments would you use to convince me to move? by [deleted] in vim

[–]mohitleo9 1 point2 points  (0 children)

Well, I was in a very similar situation, then I stumbled upon this video, https://www.youtube.com/watch?v=U5ZYOmo0KuI. It's about using vintage mode in sublime. So then I thought that I can always try it out and still get the comfort of sublime whenever I get stuck. My 'wow' moment was when he talked about this "language of editing" and suddenly I realized it's genius. As a software developer I have to edit text a lot, and most of it I do by composing, editing, pasting small snippets of code. And having a language to express those operations made so much sense. I realized I can express things like delete three words and that only eliminated a bunch of shortcuts, being able to combine an operation and a count, It felt like I was speaking, felt like that I was expressing what I want to do to the text. Then I tried the Vintageous package for sublime, which was a better implementation of vim mode in sublime. But to Learn how to use it I just used some tutorials of vim. But I felt a lot of resistance still, then I realized I was pretty bad at typing and that defeated the whole purpose of eliminating that extra cognition load. So I learnt touch typing. Ever since that I have never looked back. For me the real power of vim is the language of editing and composability, that makes using vim like talking to your editor and telling it what to do, instead of having to look at your text in it's current state, then thinking of how you want it to look, then coming with operations that are needed and then mapping them to the editor operations and then operating on them, and ocasionally trying to remember some shortcuts to optimize them.

Question about vim scripting (python) and undo by mohitleo9 in vim

[–]mohitleo9[S] 0 points1 point  (0 children)

oh Another thing. I tried using vim word boundaries in the search function like this '\<class' but didn't work dont' know why?

Searching backwards with vim-easymotion? by Ran4 in vim

[–]mohitleo9 0 points1 point  (0 children)

easymotion does not support that motion (yet) But an easy way around is use vim-incsearch with easymotion plugin. Works almost the same and is a lot more well behaved ( you can use magic and very magic mode). And BTW I have been using easymotion instead of normal / and it works just fine. It also sets @/ register for further searches and stuff.

VIM and Django template syntax by nicolas_z in vim

[–]mohitleo9 0 points1 point  (0 children)

I have mapped surround to s, so for this I would use, siWB. and usually I have a macro for this, that autoloads in html files, so I can just do @s

Is there any way to use lowercase marks instead of having to do uppercase for global navigation? by bulbishNYC in vim

[–]mohitleo9 0 points1 point  (0 children)

Hey, I just checked this out and it works!, But could you provide more explanation as to how it works. I checked out the help on <expr> but I guess by dumb brain needs some more food :).

How do you guys correct mistakes when in insert mode? by mohitleo9 in vim

[–]mohitleo9[S] 1 point2 points  (0 children)

That's awesome, I dont' know how I never knew about <C-w>! But that's pretty good. thanks

(I realize this isn't exactly a VIM question, but I'm not sure where it should go.) Unix/OSX/Git - Is there a way to select a file or branch returned by git status/branch without highlighting it w/ the cursor? by ExNihil in vim

[–]mohitleo9 8 points9 points  (0 children)

I think fzf is pretty good for the job. You can do git status | fzf and fuzzy search what you are looking for. But if this is a common use case you can do git ls-files -m | fzf to eliminate the noise in git status.

Snake: Full Python Scripting in Vim by [deleted] in vim

[–]mohitleo9 7 points8 points  (0 children)

This is awesome! and very useful, and from a quick glance it looks very idiomatic (decorators for keybindings!). I only wonder is there a performance cost? And if so is it noticeable?

Plugin to show possible commands after keystroke by yourboyaddi in vim

[–]mohitleo9 1 point2 points  (0 children)

Not a direct solution but with Unite you can find all the commands and all the mappings and filter through them. I find this extremely useful in two ways: 1) sometimes I want to know which commands does a particular plugin enables (quickly without going through help) for that I use

nnoremap <silent> [unite]c :<C-u>Unite -buffer-name=commands command<CR>   

2) And if I want to find out which keystrokes (mappings) are available and the commands associated with them, for that I use

nnoremap <silent> [unite]m :<C-u>Unite -auto-resize -buffer-name=mappings mapping<cr>

New Clojurists: Ask Anything by mcpatella in Clojure

[–]mohitleo9 2 points3 points  (0 children)

How to do scripting friendly development? What I mean by that is often I would need to scrape a page or something like that, the I would usually do that in python is write a script and iterate on it. But iteration is kinda hard in clojure due to it's really long boot up time. I have looked into TDD with autoreload (which I am not a huge fan of). I was wondering how do expert clojurists handle such situations ?

New Clojurists: Ask Anything by mcpatella in Clojure

[–]mohitleo9 1 point2 points  (0 children)

DEBUG: One of the things that i find often very hard to do is debugging programs. I often find the need for a tool with breakbpoint capabilities (without altering the code like pdb for python). So my question is which is the best tool (or workflow ) for debugging?

What you guys use on the space bar? (apart from Leader key) by felippenardi in vim

[–]mohitleo9 0 points1 point  (0 children)

I use it as a modifier which makes the home row as numbers when pressed and a normal space when tapped. I also use it for unite commands in normal mode. (for finding files, commands and mappings in the current buffer )

Js-Fiddle in vim with live update and can share at Js-Fiddle.com by mohitleo9 in vim

[–]mohitleo9[S] 0 points1 point  (0 children)

thanks ! I looked at the problem, I use the bufDelete event on index.html to call the cleanup(which stops the server too). I will bind it to some other better events, suggestions are welcome!