Skip to content

Commit

Permalink
Merge pull request #31 from Freed-Wu/ftplugin
Browse files Browse the repository at this point in the history
Fix ftplugin/*.vim
  • Loading branch information
raimon49 authored Oct 14, 2022
2 parents 9f0e2da + 06cd9b6 commit f3a3302
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion ftplugin/requirements.vim
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@
" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
" OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
" SOFTWARE.
compiler pip_compile
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1

let s:save_cpoptions = &cpoptions
set cpoptions&vim

let b:undo_ftplugin = "setl iskeyword< commentstring<"
" pip options contain "-"
setlocal iskeyword+=-
setlocal commentstring=#\ %s
compiler pip_compile

let &cpoptions = s:save_cpoptions
unlet s:save_cpoptions
" vim: et sw=4 ts=4 sts=4:

0 comments on commit f3a3302

Please sign in to comment.