Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indents when using # #221

Closed
cynicXer opened this issue Jul 29, 2016 · 1 comment
Closed

Indents when using # #221

cynicXer opened this issue Jul 29, 2016 · 1 comment

Comments

@cynicXer
Copy link

The hash symbol (#) is always inserted at the left-most column of a file, which can cause some headaches when hacking out a Python script. I turned off smartindent (si) and set cindent instead, following the instructions here: http:https://vim.wikia.com/wiki/Restoring_indent_after_typing_hash.

set ci
set cinkeys-=0#
set indentkeys-=0#

This seemed to fix the issue.

@amix amix closed this as completed in 48e1c89 Aug 20, 2016
@amix
Copy link
Owner

amix commented Aug 20, 2016

Nice one @cynicXer. Merged this in 👏

wyukio pushed a commit to wyukio/vimrc that referenced this issue Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants